<!-- Sub Banner -->
<div id="sub_banner" class="training_head">
  <div class="container">
    <div class="text">
      <h2 style="color: #FFFFFF;">Contact Us</h2>
      <p></p>
    </div>
  </div>
</div>
<!-- Sub Banner End --> 

<!-- Sub Content -->
<div id="sub_content">
  <div class="container">
    <div class="contact">
      <h2>Enquiry <span>Form</span></h2>	
      <div class="form">

        <?php if ($form->hasErrors()) : ?>
          <div class="message_wrapper">
            <div class="alert alert-error">
              <?php
              foreach ($form as $error) {
                if ($error->getError()) {
                  echo '- ' . $error->getError() . '<br />';
                }
              }
              ?>
            </div>
          </div>
        <?php endif; ?>

        <?php if ($sf_request->hasParameter('success')) : ?>
          <div class="message_wrapper">
            <div class="alert alert-success">
              Thank you for sending us your comments!
            </div>
          </div>
        <?php endif; ?>

        <form id="<?php echo ContactUsForm::FORM_NAME; ?>" action="<?php echo url_for('@contact'); ?>" method="POST">
          <div class="field">
            <label>First Name: *</label>
            <?php echo $form[ContactUsForm::FIELD_FIRST_NAME]->render(array('tabindex' => 1, 'autocomplete' => 'off')); ?>
          </div>

          <div class="field">
            <label>Last Name: *</label>
            <?php echo $form[ContactUsForm::FIELD_LAST_NAME]->render(array('tabindex' => 2, 'autocomplete' => 'off')); ?>
          </div>

          <div class="field">
            <label>Email Address: *</label>
            <?php echo $form[ContactUsForm::FIELD_EMAIL]->render(array('tabindex' => 3, 'autocomplete' => 'off')); ?>
          </div>

          <div class="field">
            <label>Phone No:</label>
            <?php echo $form[ContactUsForm::FIELD_PHONE]->render(array('tabindex' => 4, 'autocomplete' => 'off')); ?>
          </div>

          <div class="field field-message">
            <label>Message: *</label>
            <?php echo $form[ContactUsForm::FIELD_COMMENTS]->render(array('rows' => '', 'cols' => '', 'tabindex' => 5, 'autocomplete' => 'off', 'style' => 'resize: none;')); ?>
          </div>
          <div class="clear"></div>

          <input class="btn btn-yellow" type="submit" name="submit" value="Submit">
          <div class="clear"></div>
          <?php echo $form['_csrf_token']->render(); ?>
        </form>
      </div>

      <div class="social">
        <li class="fb"><a href="http://www.facebook.com/SamsungMobile" class="fb" target="_blank">facebook/samsung</a></li>
        <!--<li class="tw"><a href="javascript:void(0)" class="tw">twitter/samsung</a></li>
        <li class="gp"><a href="javascript:void(0)" class="gp">google+/samsung</a></li>
        <li class="youtube"><a href="javascript:void(0)" class="youtube">youtube/samsung</a></li>-->
      </div>
      <div class="clear"></div>

    </div>
  </div>
</div>

<div class="clear"></div>
<!-- Sub Content End -->
